import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import admin from './admin'
import shop from './shop'
import goods from './goods'
Vue.use(VueRouter)
Vue.use(ElementUI);
const routes = [
  ...admin,
  ...shop,
  ...goods
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})
export default router
